<?php
	$js_path_include='application/modules/menu/js';
?>
<script>
	<?php include($js_path_include."/menu.js");?>
</script>
<?if($this->public_model->getSystemParameterValue("connectFacebook") == "1"):?>
	<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<?endif?>

<link rel="image_src" href="<?=base_url().'/application/views/templates/givemart/images/logo1.png'?>" />
<meta property="og:title" content="<?= (empty($title) ? "" : $title. " - ") . SITE_SLOGAN ?>" />
<meta property="og:site_name" content="<?= base_url() ?>" />
<meta property="og:description" content="<?=urlencode(SITE_SLOGAN)?>" />
<meta property="og:image" content="<?=base_url().'/application/views/templates/givemart/images/logo1.png'?>" />
<!-- start main menu  div -->
		<div id="homemenu">
			<table width="100%" border="0">
				<tr>
					<td valign="top" width="90%" style="padding:2px 0 0 0;">
						<ul id="jsddm">
							<?php
							$this->load->model('public_model');
							$base_url = $this->public_model->getNonSSLURL();
							$lengthMenu = count($parentmenu);
							$count = 0;
								foreach ($parentmenu as $pritem) {
									$count++;
									if($count!=$lengthMenu) echo '<li><a href="'.$base_url.$pritem->link.'">'.$pritem->name.'</a>';
			   						else echo '<li ><a style="border-right:0px; " href="'.$base_url.$pritem->link.'">'.$pritem->name.'</a>';
			   							$flag=0;
			   							foreach ($submenu as $sbitem) {
			   								if($sbitem->pr==$pritem->id){
			   									if($flag==0)echo '<ul>';
			   									echo '<li><a href="'.$base_url.$sbitem->link.'">'.$sbitem->name.'</a></li>';
			   									$flag++;
			   								}
			   							}
			   							if($flag>0)echo '</ul>';
			   						echo '</li>';
								}
							?>
						</ul>
					</td>
					<td valign="top" align="left" style="float:left; text-align:left;">
						
					</td>
				</tr>
			</table>
		</div>
